package com.tanglongan.designPattern.dp06_adapter.demo03.oldSystem;

import com.google.common.collect.ImmutableMap;

/**
 * 老系统的接口：注册、登录
 */
public class PasswordService {

    /**
     * 注册
     */
    public ResultMsg register(String username, String password) {
        return new ResultMsg(200, "注册成功", ImmutableMap.of("username", username, "password", password));
    }

    /**
     * 登录
     */
    public ResultMsg login(String username, String password) {
        System.out.printf("用户：%s , 密码：%s , 已经登录成功！", username, password);
        return null;
    }

}
